#pragma once


#include <string>
#include <vector>
#include "Parser.h"
#include "ContactStruct.h"
#include "../omsproxy/OMSClientBase.h"
#include "../omsproxy/OMSClientConcrete.h"

class ContactSync
{
public:
	ContactSync(Outlook::_Application* app){
		m_app = app;
	}
	ContactSync(void){
		m_app = NULL;

	}
	~ContactSync(void);

public:
	void Sync(const std::wstring& uri , const std::wstring& userKey , const std::wstring& pwd);

private:
	LRESULT GetOutlookLocalContacts(std::vector<ContactStruct*>* list);

private:
	std::wstring& trim(std::wstring &s);

private:
	Outlook::_Application* volatile m_app;//do not release
};

